import request from '@/utils/request'

// 查询费用生成列表
export function listMake(query) {
	return request({
		url: '/charge/make/list',
		method: 'post',
		data: query,
		params: {
			pageSize: query.pageSize,
			pageNum: query.pageNum
		}
	})
}

// 查询费用生成详细
export function getMake(makeId) {
	return request({
		url: '/charge/make/' + makeId,
		method: 'get'
	})
}

// 新增费用生成
export function addMake(data) {
	return request({
		url: '/charge/make',
		method: 'post',
		data: data
	})
}

// 修改费用生成
export function updateMake(makeId) {
	return request({
		url: '/charge/make',
		method: 'put',
		data: {
			makeId: makeId,
			status: 1
		}
	})
}

// 删除费用生成
export function delMake(makeId) {
	return request({
		url: '/charge/make/' + makeId,
		method: 'delete'
	})
}